﻿using System;
using System.IO;
using System.Reflection;
using System.Web;
using System.Web.UI.WebControls;
using AnyOffice.Components;

using log4net;

namespace AnyOffice.general
{
    public partial class topbar2 : BasePage
    {
        public string userName= string.Empty;

        private static ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
        

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                this.userName = new UserCache().UserName;
                this.litBannerText.Text = InterfaceCache.BannerText;
                if (InterfaceCache.LogoImg != string.Empty)
                {
                    this.litLogoImg.Text = string.Concat(new object[] { "<td width='", InterfaceCache.LogoWidth, "' align='center'><img src='/images/interface/", InterfaceCache.LogoImg, "' width='", InterfaceCache.LogoWidth, "' height='", InterfaceCache.LogoHeight, "'>&nbsp;&nbsp;</td>" });
                }
            }
            catch (Exception exception)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("", exception);
                }
            }

        }       

    }
}
